package com.haiyou.dc.suanfa;

import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;

public class TestBubbleSort {

    transient String aa="";

    public static void main(String[] args) throws IOException {

        int[] arr = {1, 3, 56, 33, 45, 22, 224, 9, 7};
        for (int i = 0, size = arr.length; i < size; i++) {
            for (int j = 0; j < size - i - 1; j++) {
                if (arr[j] > arr[j + 1]) {
                    int temp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = temp;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
//
//        ObjectOutputStream objectOutputStream = new ObjectOutputStream(new FileOutputStream(""));
//
//        objectOutputStream.writeObject("");

        String xx="";

        Class<?> cl = xx.getClass();
        System.out.println(cl.isArray());

        ArrayList<Object> objects = new ArrayList<>();



    }
}
